{% extends "base.html" %}

{% block content %}
           <div style="overflow:auto;height=491">
      <table class="list" width="100%">
        <thead>
          <tr>
            <th>报表类型</th>
            <th>开始时间</th>
            <th>结束时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
          {%for schedule in list%}
          <tr>
            <td>{{schedule.schedule_type.name}}</td>
            <td>{{schedule.start_date|date:"Y-m-d"}}</td>
            <td>{{schedule.end_date|date:"Y-m-d"}}</td>
            <td>{%if schedule.status == 1 %}<a href="/schedule/view/{{schedule.id}}" target="navTab" rel="view_schedule" title="查看计划">查看</a>&nbsp;&nbsp;<a href="/approved/do/{{schedule.id}}" target="navTab" rel="approve_page" title="审批计划">审批</a>{%endif%}</td>
          </tr>
          {%endfor%}
        </tbody>
      </table>
     </div>
{% endblock %}